const express = require('express')
const userHandler = require('../router_handler/user.js')
const expressJoi = require('@escook/express-joi')
const { reg_login_schema,req_schema } = require('../schema/user')

const router = express.Router()
// router.get('/userpic',userHandler.userpic)

router.post('/reguser',userHandler.regUser)

router.post('/login',expressJoi(reg_login_schema),userHandler.login)

module.exports = router